home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19970104-19970326 / 000054_news@columbia.edu _Wed Jan 15 14:12:46 1997.msg < prev    next >
Internet Message Format  |  2020-01-01  |  6KB

  1. Return-Path: <news@columbia.edu>
  2. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30]) by watsun.cc.columbia.edu (8.8.3/8.8.3) with ESMTP id OAA18180 for <kermit.misc@watsun.cc.columbia.edu>; Wed, 15 Jan 1997 14:12:45 -0500 (EST)
  3. Received: (from news@localhost) by newsmaster.cc.columbia.edu (8.8.3/8.8.3) id OAA18922 for kermit.misc@watsun; Wed, 15 Jan 1997 14:12:44 -0500 (EST)
  4. Path: news.columbia.edu!watsun.cc.columbia.edu!fdc
  5. From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
  6. Newsgroups: comp.protocols.kermit.misc
  7. Subject: Re: Problem with NUM-Lock key
  8. Date: 15 Jan 1997 19:12:37 GMT
  9. Organization: Columbia University
  10. Lines: 100
  11. Message-ID: <5bja75$5v7$1@apakabar.cc.columbia.edu>
  12. References: <5bhmp7$l43@slkc2.slkc.uswest.net>
  13. NNTP-Posting-Host: watsun.cc.columbia.edu
  14. Xref: news.columbia.edu comp.protocols.kermit.misc:6409
  15.  
  16. In article <5bhmp7$l43@slkc2.slkc.uswest.net>,
  17. Abraham Kololli <ekololli@utah.uswest.net> wrote:
  18. : I have couple of clients who constantly do data entry and use their
  19. : NUMLOCK key to do data entry.  They use Kermit 3.14 for Terminal
  20. : Emulation, and emulate a VT320.
  21. :
  22. What operating system?  DOS, Windows 3.x, ... ?
  23.  
  24. : From time to time,  Kermit does not
  25. : recognize that the NUMLOCK key is ON, and acts as if the NUMLOCK key
  26. : is not selected.
  27. Is the Num Lock really on?  You can tell by looking at the light.
  28.  
  29. Kermit reads scan codes from the PC BIOS (but if you are using Windows,
  30. then all sorts of software layers are inserted between Kermit and BIOS).
  31.  
  32. The BIOS reports one scan code for a numeric keypad key when Num Lock is on,
  33. and a different code when Num Lock is off.  All that MS-DOS Kermit is doing
  34. is reading the scan codes from (what it thinks is) the BIOS.
  35.  
  36. : These clients have an enhanced 101 keyboard, and I have replaced the
  37. : keyboard several time, but I don't think the the problem is the
  38. : keyboard.  Also, whenever the do CONTRL W, which in VMS means refresh
  39. : the screen, they NUMLOCK key gets recognized and everything seems to
  40. : be working normal.  So everytime they experience this problem, they
  41. : press CONTRL W, and the problem disappears.  Is there a solution to
  42. : this problem?  Is there anything I can do to resolve this issue?
  43. Aha, then maybe you are not talking about Num Lock at all -- perhaps what
  44. you are really talking about is the state of the emulated VT320 numeric
  45. keypad, which can be in either Numeric or Application mode.
  46.  
  47. To use the PC's numeric keypad as if it were a VT terminal's numeric keypad
  48. in MS-DOS Kermit, you must make the appropriate key assignments, since they
  49. are not made by default.  By default, when Num Lock is not on, the keys have
  50. the same assignments as the gray keys which have the same label (e.g.  Home,
  51. End, Left Arrow, etc), for the benefit of 88-key keyboards.
  52.  
  53. To make the desired key assignments, you can use the VT300.INI file in the
  54. KEYBOARD subdirectory of the MS-DOS Kermit directory:
  55.  
  56.   take keyboard\vt300.ini
  57.  
  58. The pertinent commands from this file are:
  59.  
  60. set key \850 \kkp0      ; Keypad 0 (Numlock)     Keypad 0
  61. set key \338 \kkp0      ; Keypad 0 (Normal)     Keypad 0
  62. set key \847 \kkp1      ; Keypad 1 (Numlock)     Keypad 1
  63. set key \335 \kkp1      ; Keypad 1 (Normal)     Keypad 1
  64. set key \848 \kkp2      ; Keypad 2 (Numlock)     Keypad 2
  65. set key \336 \kkp2      ; Keypad 2 (Normal)     Keypad 2
  66. set key \849 \kkp3      ; Keypad 3 (Numlock)     Keypad 3
  67. set key \337 \kkp3      ; Keypad 3 (Normal)     Keypad 3
  68. set key \843 \kkp4      ; Keypad 4 (Numlock)     Keypad 4
  69. set key \331 \kkp4      ; Keypad 4 (Normal)     Keypad 4
  70. set key \844 \kkp5      ; Keypad 5 (Numlock)     Keypad 5
  71. set key \332 \kkp5      ; Keypad 5 (Normal)     Keypad 5
  72. set key \845 \kkp6      ; Keypad 6 (Numlock)     Keypad 6
  73. set key \333 \kkp6      ; Keypad 6 (Normal)     Keypad 6
  74. set key \839 \kkp7      ; Keypad 7 (Numlock)     Keypad 7
  75. set key \327 \kkp7      ; Keypad 7 (Normal)     Keypad 7
  76. set key \840 \kkp8      ; Keypad 8 (Numlock)     Keypad 8
  77. set key \328 \kkp8      ; Keypad 8 (normal)     Keypad 8
  78. set key \841 \kkp9      ; Keypad 9 (Numlock)     Keypad 9
  79. set key \329 \kkp9      ; Keypad 9 (Normal)     Keypad 9
  80.  
  81. set key \334  \kkpminus      ; Keypad +         Keypad -
  82. set key \2382 \kkpcoma      ; ALT Keypad +     Keypad ,
  83. set key \851  \kkpdot      ; Keypad . (Numlock)     Keypad .
  84. set key \339  \kkpdot      ; Keypad . (normal)     Keypad .
  85. set key \4365 \Kkpenter      ; Keypad Enter     Keypad Enter
  86.  
  87.               ; F1             PF1 (default Kermit)
  88.               ; Use GOLD.COM to make Num Lock work as F1/PF1/Gold.
  89. set key \325 \kPF1        ; This works with WPGGOLD.COM.
  90.  
  91. set key \4399 \kPF2      ; Keypad /         PF2
  92. set key \311  \kPF3      ; Keypad *         PF3
  93. set key \330  \kPF4      ; Keypad -         PF4 Key
  94.  
  95. You need the GOLD TSR to make the Num Lock key work like the DEC Gold key.
  96. The GOLD TSR is found in the same directory as the VT300.INI file.
  97.  
  98. The rest of the commands in the VT300.INI file set up the function keys
  99. and editing keys to be like the corresponding DEC VT220/320 keys.
  100.  
  101. But there is still one more piece to the puzzle.  As noted, the VT keypad can
  102. be in one of two modes: numeric or application.  It is the responsibility of
  103. the host application to send an escape sequence to put the keypad into the
  104. appropriate mode before attempting to read keystrokes from it.  But some
  105. applications fail to do that and simply ASSUME that the keypad is in the right
  106. mode.  In many cases this assumption is wrong.  So MS-DOS Kermit has a command
  107. that lets you force the keypad into the desired mode:
  108.  
  109.   SET TERMINAL KEYPAD { APPLICATION, NUMERIC }
  110.  
  111. I hope this clears things up.
  112.  
  113. - Frank